package com.tou.repository;

import com.tou.model.BusinessUser;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface BusinessUserRepository extends JpaRepository<BusinessUser, Long> {
    // 可以在此添加自定义查询方法
    Optional<BusinessUser> findByEmail(String email);  // 查找企业用户是否已注册
}
